package io.renren.repository;
import io.renren.entity.SysConfigEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
/**
 * Created by kun on 2017/5/22.
 */
public interface SysConfigRepository extends JpaRepository<SysConfigEntity,Long> {
	@Query("select value from SysConfigEntity where key = ?1")
	String queryByKey(String paramKey);

	@Query("update SysConfigEntity set value = ?2 where key = ?1")
	int updateValueByKey(String key, String value);

}
